<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreatePerfilCompetenciaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreatePerfilCompetenciaLabel_perfil}" for="perfil" />
                    <h:selectOneMenu disabled="true" id="perfil" immediate="true" value="#{perfilCompetenciaController.selected.perfil}" title="#{bundle.CreatePerfilCompetenciaTitle_perfil}" required="true" requiredMessage="#{bundle.CreatePerfilCompetenciaRequiredMessage_perfil}">
                        <f:selectItems value="#{perfilController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreatePerfilCompetenciaLabel_competencia}" for="competencia" />
                    <h:selectOneMenu id="competencia" immediate="true" value="#{perfilCompetenciaController.selected.competencia}" title="#{bundle.CreatePerfilCompetenciaTitle_competencia}" required="true" requiredMessage="#{bundle.CreatePerfilCompetenciaRequiredMessage_competencia}">
                        <f:selectItems value="#{competenciaController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreatePerfilCompetenciaLabel_comentarios}" for="comentarios" />
                    <h:inputText id="comentarios" value="#{perfilCompetenciaController.selected.comentarios}" title="#{bundle.CreatePerfilCompetenciaTitle_comentarios}" />
                </h:panelGrid>
                <br />

                <div class="navbar">
                    <div class="container">
                      <a href="#menu" class="menu-trigger meteocon" data-meteocon="M" data-toggle="panel" data-target="#menu"></a>
                      <div class="nav-collapse collapse">
                        <nav id="menu">
                          <ul class="nav docs-navbar-menu">
                          <li><h:commandLink styleClass="btn btn-info" action="#{perfilCompetenciaController.create}" value="Guardar" /></li>
                            <li>&nbsp;</li>
                           <li><h:commandLink styleClass="btn btn-info" action="#{perfilCompetenciaController.cancel}" value="Cancelar" immediate="true"/></li>
  
                          </ul>
                        </nav>
                      </div>
                    </div>
                </div>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
